import { usePagination } from '@/hooks/usePagination'
import { ref } from 'vue'

export default function useErrorCodeTable() {
  const isLoading = ref(false)
  const { pagination, changePageNumber, changePageSize } = usePagination(onSearch)
  const columns: TableColumnList = [
    {
      label: '错误状态码',
      prop: 'errorCode',
      width: 100,
    },
    {
      label: '描述',
      prop: 'errorDesc',
      minWidth: 180,
    },
  ]

  function onSearch() {}

  return { isLoading, columns, pagination, changePageNumber, changePageSize }
}
